package com.ny.service;

import com.ny.entity.Order;
import com.ny.entity.Product;
import java.sql.SQLException;
import java.util.List;

public interface ProductService {
    List<Product> getAllProducts() throws SQLException;
    Product getProductById(int productId) throws SQLException;
    boolean purchaseProduct(int studentId, int productId, int quantity) throws SQLException;

    List<Order> getOrdersByStudentId(int studentId) throws SQLException;
}